typedef struct {
	char *login;
	char *password;
	int delay;
	char *player;
} config_t;

typedef void (*ConfigCallback)(void* data);

extern gboolean config_save(config_t *config, GError **error);
extern gboolean config_load(config_t *config, GError **error);
extern void config_run_dialog(config_t *current, ConfigCallback cb, gpointer data);
extern void config_free(config_t *config);
